

/*
This is a UI file (.ui.qml) that is intended to be edited in Qt Design Studio only.
It is supposed to be strictly declarative and only uses a subset of QML. If you edit
this file manually, you might introduce QML code that is not supported by Qt Design Studio.
Check out https://doc.qt.io/qtcreator/creator-quick-ui-forms.html for details on .ui.qml files.
*/
import QtQuick 2.15
import QtQuick.Controls 2.15
import SutoDisplay 1.0
import TaoQuick 1.0

Rectangle {
    id: root
    implicitHeight: 540
    implicitWidth: 1024

    property ListModel wizardModel: ListModel {
        ListElement {
            name: "Menu"
            descript: "This is the menu button, toggle the display data and menu interface."
            targetObjectName: "menu"
            arrowType: Qt.UpArrow
        }
        ListElement {
            name: "DataTime"
            descript: "This is the current time, click the button to enter the time setting."
            targetObjectName: "DataTime"
            arrowType: Qt.UpArrow
        }
        ListElement {
            name: "StatusArea"
            descript: "This is the status bar area."
            targetObjectName: "StatusArea"
            arrowType: Qt.UpArrow
        }
    }

    MainformModel{
        id:mainformModel
    }

    SwipeView {
        id: swipeView
        anchors.fill: parent

        Repeater{
            model: mainformModel
            Loader{
                source: sourcePath
            }
        }
    }
    PageIndicator {
        id: indicator

        count: swipeView.count
        currentIndex: swipeView.currentIndex

        anchors.bottom: swipeView.bottom
        anchors.horizontalCenter: parent.horizontalCenter
    }

}
